public class Animal {
    //属性

    private String name;

    private int age;


    private Member[] members;


    //行为  （1）操作（2）对属性进行获取 和设置

    //方法的定义
    public void action() {
        System.out.println("动物会叫");
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public void setMembers(Member[] members) {
        this.members = members;
    }

    public Member[] getMembers() {
        return members;
    }
}
